package co.salehi.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import co.salehi.domain.Country;
import javax.persistence.ManyToOne;

@RooJavaBean
@RooToString
@RooEntity
public class TyreMake {

	@NotNull
    private String name;

    @NotNull
    @ManyToOne
    private Country country;
    
    public String toString() {
        return name + " [" + country + "]";
    }
}
